package cn.flying;

import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ImportResource;


/**
 * @description: 启动类
 * @author: lvyong
 * @date: 2022年09月10日 13:17
 * @version: 1.0
 */
@ServletComponentScan
@MapperScan(basePackages = "cn.flying.**.mapper")
@ImportResource(value = "classpath:*-context.xml")
@SpringBootApplication(scanBasePackages = "cn.flying.*", exclude = SecurityAutoConfiguration.class) //activiti要排除掉SecurityAutoConfiguration
//@SpringBootApplication(scanBasePackages = "cn.flying.*")
public class FlyingApplication {

    public static void main(String[] args) {
        SpringApplication.run(FlyingApplication.class, args);
    }

}
